<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMedicalFollowUpsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_medical_follow_ups', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('record_id')->index()->comment("关联medical_records_id");
            $table->text('blood_glucose')->default('')->comment("自我血糖监测情况");
            $table->text('interval_evaluation')->default('')->comment("上次就诊至本次就诊间隔情况评价");
            $table->text('interval_symptom')->default('')->comment("上次就诊至本次就诊间隔症状");
            $table->text('diet')->default('')->comment('患者每天/饮食');
            $table->unsignedTinyInteger('sport')->comment('患者运动：1不运动，2运动少，3每天30-60分钟,4每天1小时以上');
            $table->text('normal')->default('')->comment('患者一般情况');
            $table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_medical_follow_ups');
    }
}
